package com.s69.appback.controller;

import com.s69.appback.service.AppCategoryService;
import com.s69.appback.vo.ResultVo;
import com.s69.appback.vo.TreeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CategoryController {
    @Autowired
    AppCategoryService appCategoryService;
    @GetMapping("/getTree")
    public ResultVo getTree(){
        TreeVo vo=appCategoryService.getTree();
        return ResultVo.success("",vo);
    }
}
